<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="zh">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    <script src="/site_media/js/ajax.js"></script>
    <title>{% block title %}{% endblock %}</title>
</head>
<body>
<div id="header">
    {% block header %}
	<div id='nav' align="right">
	<table>
	    <tr>
		<td><i>NetBook</i></td>
		<td><a href="/note/public/">Public</a></td>
		{% if request.session.mail %}
		<td><a href="/note/my/">My</a></td>
		<td><a href="/note/add/">Add</a></td>
		{% endif %}
	    </tr>
	</table>
	</div>
	<div id='admin' align="right">
	{% if request.session.mail %}
	    {{ request.session.mail }}
	    <a href="/user/profile/">Profile</a>
	    <a href="/auth/logout/">Logout</a>
	{% else %}
	    <a href="/auth/login/">Login</a>
	{% endif %}
	</div>
    {% endblock %}
    <hr>
</div>
<div id="content">
    {% block content %}
	NetBook Content
    {% endblock %}
</div>
<div id="footer">
    {% block footer %}
	<hr>
	<p align="center">NetBook Footer</p>
    {% endblock %}
</div>
</body>
</html>
